#!/usr/bin/env python
# -*- coding:utf-8 -*-
import pickle
#dic={'tom':['22','M'],'RAIN':{'18':'F'}}

#方法一、
#Pdic=pickle.dumps(dic)
#with open("pickle.txt","wb")as f:
#    f.write(Pdic)


#方法二、
#with open("pickle.txt","wb")as f:
#    pickle.dump(dic,f)

with open("pickle.txt","rb")as fr:
    Pdic=pickle.load(fr)
print Pdic